using System;
using System.Xml;
using TestConfirmationWS.CoolWS;

// Add Web Reference to http://localhost/whidbeyrocks?wsdl

namespace TestConfirmationWS
{
    class Program
    {
        static void Main(string[] args)
        {

            // Send information over to WhidbeyRocks SQL Server

            XmlDocument xmlCon = new XmlDocument();
            xmlCon.LoadXml("<Confirmation OrderID='42' Message='SQL Server 2005 Rocks!' />");

            xml xmlSQL = new xml();
            xmlSQL.Any = new XmlNode[1];
            xmlSQL.Any[0] = xmlCon;
            
            Confirmation_Endpoint ws = new Confirmation_Endpoint();
            ws.Credentials = System.Net.CredentialCache.DefaultCredentials;
            ws.SendConfirmation(xmlSQL);

            // Done

            Console.WriteLine("Message sent: " + xmlCon.OuterXml);
            Console.ReadLine();
        }
    }
}
